print("简化系统验证...")
import os

# 检查目录
folders = ['core', 'gateways', 'common', 'config']
for folder in folders:
    if os.path.exists(folder):
        print(f"✅ {folder} 存在")
    else:
        print(f"❌ {folder} 缺失")

# 测试Python模块
try:
    import yaml
    print("✅ pyyaml 模块正常")
except:
    print("❌ pyyaml 模块缺失")

# 测试网关
try:
    from gateways.backtest_gateway import BacktestGateway
    from gateways.base import OrderRequest, OrderType
    print("✅ 网关模块正常")
    
    # 简单测试
    gateway = BacktestGateway({})
    gateway.connect()
    print("✅ 网关连接测试通过")
    
    # 测试订单功能
    order = OrderRequest(
        symbol="BTC/USDT",
        order_type=OrderType.LIMIT,
        volume=1.0,
        price=50000.0
    )
    result = gateway.send_order(order)
    print(f"✅ 订单测试成功 - 订单ID: {result.order_id}")
    
except Exception as e:
    print(f"❌ 网关测试失败: {e}")

print("验证完成")
input("按Enter退出...")